New upstream version 1.1.6+ds1
authorGunnar Hjalmarsson <gunnarhj@debian.org>
Sat, 10 Dec 2022 11:10:22 +0000 (12:10 +0100)
committerGunnar Hjalmarsson <gunnarhj@debian.org>
Sat, 10 Dec 2022 11:10:22 +0000 (12:10 +0100)
CMakeLists.txt
NEWS.md
data/dictionary/STPhrases.txt
data/scripts/sort_all.py
doc/opencc.doxy.in
package-lock.json
package.json
src/SimpleConverter.hpp
src/UTF8Util.hpp
test/testcases/s2t.ans
test/testcases/s2t.in

index d407e99f1fa9ab2d20ae42b51da7020e463dd892..ee085910776a747a86ec410ea42bbd2c6cf82bb2 100644 (file)
@@ -17,7 +17,7 @@
 #
 
 ######## Project settings
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
 set (PACKAGE_NAME opencc)
 project (${PACKAGE_NAME} CXX)
 include (CTest)
@@ -72,6 +72,8 @@ include(CPack)
 
 if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
     set(CMAKE_MACOSX_RPATH 1)
+    set(CMAKE_CXX_STANDARD 14)
+    set(CMAKE_CXX_STANDARD_REQUIRED ON)
 endif()
 
 ######## Directory
@@ -111,7 +113,7 @@ configure_file(
 
 install(
   FILES
-    ${CMAKE_BINARY_DIR}/opencc.pc
+    ${CMAKE_CURRENT_BINARY_DIR}/opencc.pc
   DESTINATION
     ${DIR_LIBRARY}/pkgconfig
 )
@@ -202,7 +204,7 @@ add_subdirectory(test)
 
 if (ENABLE_GTEST)
   if(NOT USE_SYSTEM_GTEST)
-    add_subdirectory(deps/gtest-1.11.0)
+    add_subdirectory(deps/gtest-1.12.1)
   endif()
   enable_testing()
 endif()
diff --git a/NEWS.md b/NEWS.md
index fa6e2ef85c02673b4af831bdf93674d0180fc76b..eac911fca3453a57c38fced123d7c4037e11bb8e 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,5 +1,12 @@
 # Change History of OpenCC
 
+## Version 1.1.6
+
+2022年12月08日
+
+* 修复python3.11 macos构建 ([#744](https://github.com/BYVoid/OpenCC/pull/744))。
+* Bump gtest 和 benchmark 以与最新的 github runners 一起工作 ([#747](https://github.com/BYVoid/OpenCC/pull/747))。
+
 ## Version 1.1.5
 
 2022年12月03日
index 078e2b5d95035ac035a1430fd4a17ce8eb342311..6446d36c9ed8244d54ca67e7b08a3589d0999dac 100644 (file)
 恐韩症      恐韓症
 恐高症      恐高症
 恐鸡症      恐雞症
+恒生 恒生
+恒指 恒指
+恒大 恒大
 恒星周期   恆星週期
 恒春野百合        恆春野百合
-恒生指数   恆生指數
-恒生股价指数     恆生股價指數
-恒生银行   恆生銀行
 恒言录      恆言錄
 恕乏价催   恕乏价催
 恙虫 恙蟲
index 20d82fd3c32cc528d2260b97cec2b92e199a915c..d1ba06c07712ca9418d2f28a9cecde4d1b6296e1 100755 (executable)
@@ -10,8 +10,8 @@ if len(sys.argv) < 2:
     print(("Usage: ", sys.argv[0], "[directory]"))
     exit(1)
 
-dirtectory = sys.argv[1]
-files = glob.glob(dirtectory + "/*")
+directory = sys.argv[1]
+files = glob.glob(directory + "/*")
 for filename in files:
     print(filename)
     sort_items(filename, filename)
index a93862d7f4fb034bd03784327ac738671b32d7d1..1dcf0c7aaeb223479e34e5f0ab23adeaeb4c83e3 100644 (file)
@@ -909,7 +909,7 @@ HTML_STYLESHEET        =
 # user-defined cascading style sheet that is included after the standard
 # style sheets created by doxygen. Using this option one can overrule
 # certain style aspects. This is preferred over using HTML_STYLESHEET
-# since it does not replace the standard style sheet and is therefor more
+# since it does not replace the standard style sheet and is therefore more
 # robust against future updates. Doxygen will copy the style sheet file to
 # the output directory.
 
@@ -1707,7 +1707,7 @@ UML_LOOK               = NO
 # the class node. If there are many fields or methods and many nodes the
 # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
 # threshold limits the number of items for each type to make the size more
-# managable. Set this to 0 for no limit. Note that the threshold may be
+# manageable. Set this to 0 for no limit. Note that the threshold may be
 # exceeded by 50% before the limit is enforced.
 
 UML_LIMIT_NUM_FIELDS   = 10
index 5a85086f822833b2290b64a0c20e401c13ba8f2d..4461c05ac7c6192be131c459e95bdbd4ef5b7ddf 100644 (file)
@@ -1,12 +1,12 @@
 {
   "name": "opencc",
-  "version": "1.1.5",
+  "version": "1.1.6",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "opencc",
-      "version": "1.1.5",
+      "version": "1.1.6",
       "hasInstallScript": true,
       "license": "Apache-2.0",
       "dependencies": {
index 0f91397a4631d830d315e0b11600656046f448c1..92b7b755db93e6f403689c71cd1eaa80cbd24e84 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "opencc",
-  "version": "1.1.5",
+  "version": "1.1.6",
   "description": "Conversion between Traditional and Simplified Chinese",
   "author": "Carbo Kuo <byvoid@byvoid.com>",
   "license": "Apache-2.0",
index 206edea740f0155a767653b9c8ebf4d64138b5f9..56932b76c63f1d5a9638c79382aa6cf705cc0c96 100644 (file)
@@ -66,7 +66,7 @@ public:
 
   /**
    * Converts a text and writes to an allocated buffer
-   * Please make sure the buffer has sufficent space.
+   * Please make sure the buffer has sufficient space.
    * @param input  A C-Style std::string (terminated by '\0') to be converted.
    * @param output Buffer to write the converted text.
    * @return       Length of converted text.
@@ -75,7 +75,7 @@ public:
 
   /**
    * Converts a text and writes to an allocated buffer
-   * Please make sure the buffer has sufficent space.
+   * Please make sure the buffer has sufficient space.
    * @param input  A C-Style std::string limited by a given length to be
    * converted.
    * @param length Maximal length in byte of the input std::string.
index a04a6fccfe87d4aa67c2e79646c549b09e9b4be5..9d3e39b8d45f64ab40e9abb7b479a63858e2d40f 100644 (file)
@@ -145,7 +145,7 @@ public:
   }
 
   /**
-   * Returns ture if the character is a line ending or end of file.
+   * Returns true if the character is a line ending or end of file.
    */
   static bool IsLineEndingOrFileEnding(const char ch) {
     return ch == '\0' || ch == '\n' || ch == '\r';
index b402a98e4ef6d9d662a2538333b7e237279d0866..25511ae5459d5d6d96305c047db3e8edfe86e7bf 100644 (file)
@@ -7,4 +7,6 @@
 新的理論被發現了。
 金胄不是金色的甲冑。
 經理發現後勸諭兩人
-想到自己一緊張就口吃,我就沒胃口喫飯
\ No newline at end of file
+想到自己一緊張就口吃,我就沒胃口喫飯
+恒指最新消息,恒生指數跌破 2 萬點
+恒生銀行和恒大集團發佈財報
\ No newline at end of file
index b1db0273127b46a4ea3c161ed7ab077de1c0511a..fe240250d4f9f1b57c82c9c2afb421315ed58c30 100644 (file)
@@ -7,4 +7,6 @@
 新的理论被发现了。
 金胄不是金色的甲胄。
 经理发现后劝谕两人
-想到自己一紧张就口吃,我就没胃口吃饭
\ No newline at end of file
+想到自己一紧张就口吃,我就没胃口吃饭
+恒指最新消息,恒生指数跌破 2 万点
+恒生银行和恒大集团发布财报
\ No newline at end of file